//
//  KFDChooseTeacherViewModel.m
//  KFD
//
//  Created by JIRENTIANXIANG on 7/12/15.
//  Copyright © 2015 kfd. All rights reserved.
//

#import "KFDChooseTeacherViewModel.h"
#import "KFDClient.h"

@implementation KFDChooseTeacherViewModel

-(void)loadTeachersWithMaxCount:(NSUInteger)maxCount
{
    KFDClient* client=[KFDClient sharedClient];
    [client getTeachersWithMaxCount:maxCount page:1 successHandler:^(NSArray *teachers) {
        self.teachers=teachers;
        [[NSNotificationCenter defaultCenter] postNotificationName:KFDTeachersReadyNotification object:nil];
    } failureHandler:^(KFDResponseBody *response) {
        
    }];
}

@end
